package com.yiyibook.service.impl;

import com.yiyibook.entity.OutWarehouseOrderHead;
import com.yiyibook.mapper.OutWarehouseOrderHeadMapper;
import com.yiyibook.service.OutOrderHeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 〈功能简述〉
 *
 * @author xun.gong@hand-china.com
 * @date 2019/10/22
 */
@Service
public class OutOrderHeadServiceImpl implements OutOrderHeadService {

    @Autowired
    private OutWarehouseOrderHeadMapper outWarehouseOrderHeadMapper;

    @Override
    public OutWarehouseOrderHead selectLastNum() {
        return outWarehouseOrderHeadMapper.selectLast();
    }

    @Override
    public OutWarehouseOrderHead insert(OutWarehouseOrderHead outWarehouseOrderHead) {
        outWarehouseOrderHeadMapper.insert(outWarehouseOrderHead);
        return outWarehouseOrderHead;
    }
}
